|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrolesystem.roles.game.Player
public abstract class Player
This role is the player of a generic game. Keywords: game, player.
| Field Summary | |
|---|---|
static KnownEvent |
KE_accept
A manager notifies that I can play. |
static KnownEvent |
KE_gameLost
A manager notifies that I have lost the game. |
static KnownEvent |
KE_gameOver
A manager notifies that the game is over. |
static KnownEvent |
KE_gameWon
A manager notifies that I have won the game. |
static KnownEvent |
KE_notifyKind
A manager notifies the kind of the game. |
static KnownEvent |
KE_notifySituation
A manager notifies the current situation of the game. |
static KnownEvent |
KE_refuse
A manager notifies that I cannot play. |
static KnownEvent |
KE_refuseMove
A manager refuse my move. |
static KnownEvent |
KE_requestMove
A manager requests to make my move. |
static KnownEvent |
KE_talk
Another player talks. |
static java.lang.String |
ROLE_ID
Role identifier. |
| Constructor Summary | |
|---|---|
Player()
|
|
| Method Summary | |
|---|---|
static RoleAction |
askKind(int addressee)
Asks the kind of the game. |
static RoleAction |
giveUp(int addressee)
Gives up the current game. |
static RoleAction |
Move(int addressee,
java.io.Serializable content)
Makes a move. |
static RoleAction |
reqPlay(int addressee)
Requests to play. |
static RoleAction |
talk(int addressee,
java.lang.String content)
Talks. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ROLE_ID
public static final KnownEvent KE_notifyKind
public static final KnownEvent KE_accept
public static final KnownEvent KE_refuse
public static final KnownEvent KE_notifySituation
public static final KnownEvent KE_requestMove
public static final KnownEvent KE_refuseMove
public static final KnownEvent KE_gameWon
public static final KnownEvent KE_gameLost
public static final KnownEvent KE_gameOver
public static final KnownEvent KE_talk
| Constructor Detail |
|---|
public Player()
| Method Detail |
|---|
public static RoleAction askKind(int addressee)
addressee - Managerpublic static RoleAction reqPlay(int addressee)
addressee - Manager
public static RoleAction Move(int addressee,
java.io.Serializable content)
addressee - Managercontent - Move.public static RoleAction giveUp(int addressee)
addressee - Manager
public static RoleAction talk(int addressee,
java.lang.String content)
addressee - Playercontent - Message.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||